// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import Vuex from 'vuex'
import store from './vuex/index'
// import Mock from './mock'
import 'font-awesome/css/font-awesome.min.css'
import './icons' // icon
// Mock.bootstrap();
import VeLine from 'v-charts/lib/line.common'
import VeMap from 'v-charts/lib/map.common'
import VCharts from 'v-charts'
// 下面的依赖可以按照需求选择性加载
// The following dependencies can be selectively loaded on demand
import 'echarts/lib/component/markLine'
import 'echarts/lib/component/markPoint'
import 'echarts/lib/component/markArea'
import 'echarts/lib/component/visualMap'
import 'echarts/lib/component/dataZoom'
import 'echarts/lib/component/toolbox'
import 'echarts/lib/component/title'
import 'zrender/lib/svg/svg'
import 'v-charts/lib/style.css'
import './styles/common.css'
import 'lib-flexible/flexible'
// Mock.bootstrap();
[VeLine, VeMap].forEach(comp => {
  Vue.component(comp.name, comp)
})
Vue.use(VCharts)
Vue.use(ElementUI)
Vue.use(Vuex)

Vue.config.productionTip = false
console.log(store)

/* eslint-disable no-new */
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')